/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.DelayReason;
import com.sasis.dao.DelayReasonDao;
import com.sasis.service.DelayReasonManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class DelayReasonManagerImpl extends BaseManager implements DelayReasonManager {
    private DelayReasonDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setDelayReasonDao(DelayReasonDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.DelayReasonManager#getDelayReasons(com.sasis.model.DelayReason)
     */
    public List getDelayReasons(final DelayReason delayReason) {
        return dao.getDelayReasons(delayReason);
    }

    /**
     * @see com.sasis.service.DelayReasonManager#getDelayReason(String id)
     */
    public DelayReason getDelayReason(final String id) {
        return dao.getDelayReason(new Integer(id));
    }

    /**
     * @see com.sasis.service.DelayReasonManager#saveDelayReason(DelayReason delayReason)
     */
    public void saveDelayReason(DelayReason delayReason) {
        dao.saveDelayReason(delayReason);
    }

    /**
     * @see com.sasis.service.DelayReasonManager#removeDelayReason(String id)
     */
    public void removeDelayReason(DelayReason delayReason) {
        dao.removeDelayReason( delayReason);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
